package simple07;

import simple07.bag.BagAbstraction;
import simple07.bag.BigBag;
import simple07.metaial.Material;
import simple07.metaial.Plastic;
//桥接模式
public class Simple {
    public static void main(String[] args) {
//        袋子型号
        BagAbstraction bagAbstraction = new BigBag();
//        材质
        Material material = new Plastic();
        bagAbstraction.setMaterial(material);
//        采摘
        bagAbstraction.pick();
    }
}
